bitkeeper revision 1.1159.212.99 (4204e978S7U_CKee_ItjbGQ8Ezbw3A)
authorkaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk>
Sat, 5 Feb 2005 15:42:48 +0000 (15:42 +0000)
committerkaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk>
Sat, 5 Feb 2005 15:42:48 +0000 (15:42 +0000)
Another scheduler fix for prev. manual merge.
Signed-off-by: keir.fraser@cl.cam.ac.uk
xen/common/schedule.c

index e0fafa6b9c9425488a8a2a3147f0ed9abf26bade..f5c6daa77a03d69fdb6a051f6f0b68a85f5cda3c 100644 (file)
@@ -422,11 +422,11 @@ void __enter_scheduler(void)
     
     perfc_incrc(sched_ctx);
 
-    if ( !is_idle_task(current->domain) )
+    if ( !is_idle_task(prev->domain) )
     {
-        LOCK_BIGLOCK(current->domain);
+        LOCK_BIGLOCK(prev->domain);
         cleanup_writable_pagetable(prev->domain);
-        UNLOCK_BIGLOCK(current->domain);
+        UNLOCK_BIGLOCK(prev->domain);
     }
 
 #if defined(WAKE_HISTO)